<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BalanceLog extends Model
{
    use HasFactory;

    const CHANGE_TYPE_INC = 'inc';
    const CHANGE_TYPE_DEC = 'dec';

    public static $changeTypeMap = [
        self::CHANGE_TYPE_INC    => '增加',
        self::CHANGE_TYPE_DEC    => '减少',
    ];

    protected $fillable = [
        'user_id', 'merchant_id', 'change_type', 'amount', 'operator', 'remark'
    ];
}
